<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<!-- .breadcrumb -->
	</div>
	<!-- Main content -->
	<div class="page-content">
    	<div class="row">
    	    <div class="page-header">
    			<h1>提现打款</h1>
    		</div>
    		<div class=" col-md-12 col-sm-12 col-xs-12 form">
                <div class="row">
                <form action="<?php echo base_url().'admin/user/pay'?>" method="get">
                    <div class="wh">
                    	<label>真实姓名：</label>
                        <input type="text" name="user_name" value="<?php if (isset($user_name))echo $user_name;?>" />
                    </div>
                    <div class="wh">
                    	<label>手机号码：</label>
                        <input type="text"  name="user_phone" value="<?php if (isset($user_phone))echo $user_phone;?>"/>
                    </div>
                    <div class="wh">
                        <button class="btn btn-sm btn-info" type="submit"><i class="icon-search"></i>查询</button>
                    </div> 
                </form>
                </div>
            </div>
            <input type="hidden" name="upid" id="upid" value=""/>
            <div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="center" style="width: 3%;">
									<label>
										<input type="checkbox" class="ace" />
										<span class="lbl"></span>
									</label>
								</th>
								<th>登录账号</th>
								<th>真实姓名</th>
                                <th>身份证号</th>
                                <th>提现金额</th>
                                <th>手续费</th>
                                <th>实名状态</th>
                                <th>银行卡状态</th>
                                <th>审核人</th>
                                <th>审核时间</th>
                                <th>创建时间</th>
                                <th style="width: 8%;">操作</th>
							</tr>
						</thead> 
						<tbody>
						<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $app){
                            	?>
							<tr>
								<td class="center">
                                	<p>
									<label>
										<input type="checkbox" class="ace" name="num[]" value="<?php echo $app->id;?>"/>
										<span class="lbl"></span>
									</label>
                                    </p>
								</td>
                                <td><p><?php echo $app->login_name;?></p></td>
                                <td><p><?php echo $app->card_name;?></p></td>
                                <td><p><?php echo substr($app->cardno, 0,strlen($app->cardno)-4)."****";?></p></td>
                                <td><p><?php echo $app->amount;?></p></td>
                                <td><p><?php echo $app->charge;?></p></td>
                                <td><p><?php 
                                	if($app->status == 0){
                                		echo "未实名认证";
                                	}elseif($app->status == 1){
                                		echo "已提交身份信息，认证中";
                                	}elseif($app->status == 2){
                                		echo "实名认证失败";
                                	}elseif($app->status == 3){
                                		echo "实名认证通过";
                                	}
                                	?></p></td>
                                	<td><p><?php 
                                	if($app->bank_status == 0){
                                		echo "未提交";
                                	}elseif($app->bank_status == 1){
                                		echo "已提交银行卡，认证中";
                                	}elseif($app->bank_status == 2){
                                		echo "认证失败";
                                	}elseif($app->bank_status == 3){
                                		echo "认证通过";
                                	}
                                	?></p></td>
                                <td><p><?php echo $app->admin_name;?></p></td>
                                <td><p><?php echo $app->audit_time;?></p></td>
                                <td><p><?php echo $app->create_time;?></p></td>
                                <td><p>
								    <a class="btn btn-sm btn-info" href="<?php echo base_url().'admin/user/edit_pay/'.$app->id;?>"><i class="icon-edit"></i>打款操作</a>
                                    </p>
                                </td>
    						</tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="12">无数据</td>
                            </tr>
                            <?php }?>
                            </tbody>
                         </table>
                     </div><!-- /.table-responsive -->
				</div>
                <div class="col-sm-12">
                	<div class="modal-footer no-margin-top">
	                	<div class="pull-left record">
							共<?php echo $count;?>条记录
	                    </div>
                		<?php if (isset($page))echo $page;?>
                	</div>
                </div>
            </div><!-- /.row -->
		</div><!-- /.page-content -->
	</div><!-- /.main-content -->